import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

/**
 * Generated class for the ToupiaoPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-toupiao',
  templateUrl: 'toupiao.html',
})
export class ToupiaoPage {
  public title = '2018南网歌王投票';
  time ='2018.3.27';
  status = '进行中';
  toupiaoList=[
    {
      name:"杜丽莎",
      number:21236,
      isvoted:1
    },
    {
      name:"林忆莲",
      number:236,
      isvoted:1
    },
    {
      name:"杨幂",
      number:21236,
      isvoted:1
    },
    {
      name:"赵丽颖",
      number:2236,
      isvoted:0
    },
    {
      name:"钟欣桐",
      number:22236,
      isvoted:1
    }
  ]

  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ToupiaoPage');
  }
  
  gototoupiaojieguo() {
    this.navCtrl.push("ToupiaojieguoPage")

  }

}
